#include <ximera/audio/openal/world.hpp>
#include <ximera/audio/openal/listener.hpp>
#include <ximera/audio/openal/sounddata.hpp>
#include <ximera/audio/openal/sound.hpp>

namespace ximera { namespace audio { namespace openal
{
    World::World()
    {
    }

    World::~World()
    {
    }

    ISound* World::loadSound(String const& fileName, bool is3D)
    {
        ISound* sound = createSound();
        sound->soundData(loadSoundData(fileName, is3D));

        return sound;
    }

    ISoundData* World::loadSoundData(String const& fileName, bool is3D)
    {
        return new SoundData(fileName);
    }

    IListener* World::createListener()
    {
        return new Listener();
    }

    ISound* World::createSound()
    {
        return new Sound();
    }
}}}